Title Banner


Technical Q&A's


QTPC 03 - Sound Manager 3.0 and QuickTime 2.0 (1-May-95)


Q We licensed Sound Manager 3.0 and QuickTime 2.0 for use with our music application. We need to know which Macintosh models have Sound Manager 3.0 in ROM, and whether System 7.5 is the only version of the operating system that includes QuickTime 2.0 in its installation options.

A The answer to your first question (which models have Sound Manager 3.0 in ROM) is more complicated than you might expect, because the presence of Sound Manager 3.0 in ROM is not necessarily dependent on the Macintosh model. While it is safe to assume that Sound Manager 3.0 is built-in on all Quadra AVs and Power Macintoshes, and that all Macintoshes running System 7.5 have Sound Manager 3.0 available, there is no general rule for other Mac models that are not using System 7.5.

The best way to determine whether or not you need to install Sound Manager 3.0 on a particular machine is to check for the presence of Sound Manager and determine its version programmatically. To do this, first ensure that the SndDispatch trap is implemented, and then call a routine called SndSoundManagerVersion(), which returns a number that indicates which Sound Manager version is present. This routine is documented in Inside Macintosh: Sound on pages 2-35 and 2-133. If the major version number returned is less than 3, then Sound Manager 3.0 is not installed.

The following code snippet shows how to implement TrapAvailable, which you can use in the trap test:

static Boolean TrapAvailable( short trapNum, short trapType)
{
	return ( NGetTrapAddress(trapNum,trapType) != 					
			NGetTrapAddress(_Unimplemented, ToolTrap) );
}

This code snippet shows how to check the Sound Manager version:

Boolean IsSndMgrThree(void)
{
Boolean      Is3orLater = false;
NumVersion   version;
	
version = SndSoundManagerVersion();
if (version.majorRev >= 3)          /*is this version 3.0 or later?*/
   Is3orLater = true;
return(Is3orLater);
}

Sound Manager 3.0 also requires the Component Manager, which was not included in the system software until System 7.1. If a machine has a pre-7.1 system, you must also check for the presence of the Component Manager. You can use Gestalt with the gestaltComponentMgr selector and check the value of the response parameter, which, if the Component Manager is available, gives the Component Manager version.

Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help